package com.jic.product.entity;

import com.jic.product.entity.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 价格表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Getter
@Setter
public class ProductPrice extends BaseEntity {

    //主键id
    private long id;
    //零售价-含税
    private BigDecimal salePriceWithTax;
    //商品id
    private long productId;
    //采购价-含税
    private BigDecimal purchasePriceWithTax;
    //进价不含税
    private BigDecimal purchasePriceWithoutTax;
    //售价不含税
    private BigDecimal salePriceWithoutTax;
    //市场价
    private BigDecimal marketPrice;
    //建议零售价
    private BigDecimal recommendRetailPrice;
    //团购价
    private BigDecimal groupBuyingPrice;
    //渠道code
    private String channelCode;
    //进价税率Id
    private long purchaseTaxRateId;
    //进价税率
    private BigDecimal purchaseTaxRate;
    //售价税率Id
    private long saleTaxRateId;
    //售价税率
    private BigDecimal saleTaxRate;
    //商品数据类型:1-运营商品;2-商家商品;3-店铺商品;
    private Integer dataType;
    //积分数量
    private BigDecimal integralNum;
    //零售价单位类型:1-500g;2-1000g;
    private BigDecimal salePriceUnitType;
    //采购价单位类型:1-500g;2-1000g;
    private BigDecimal purchasePriceUnitType;
    //平台服务费
    private BigDecimal platformServiceFee;
    //可用库存
    private Integer availableStock;
    //总库存
    private Integer totalStock;
}